<template>
    <div class>
    <div class="ep-card card ep-search" style="text-align:right;">
            <el-button type="primary" size="mini"  @click="back">返回</el-button>
     </div>
      <el-tabs type="border-card">
        <el-tab-pane label="基本信息">
          <entBaseComponentDisplay ref="entBaseComponentDisplay"></entBaseComponentDisplay>
          <el-divider content-position="left">工商注册信息</el-divider>
            <entBaseGsComponentDisplay ref="entBaseGsComponentDisplay"></entBaseGsComponentDisplay>
        </el-tab-pane>
        <el-tab-pane label="人员信息">
          <entpersonComponentDisplay ref="entpersonComponentDisplay"></entpersonComponentDisplay>
        </el-tab-pane>
      </el-tabs>
    </div>
  </template>
  
  <script>
  export default {
    components: {
        entBaseComponentDisplay: require("./entBaseComponentDisplay.vue").default,
        entBaseGsComponentDisplay: require("./entBaseGsComponentDisplay.vue").default,
        entpersonComponentDisplay: require("./entpersonComponentDisplay.vue").default,
    },
    data() {
      return {
        entId:'',
      };
    },
    computed: {},
    mounted() {
        if(this.$route.query.entId){
             this.entId=this.$route.query.entId;
        }else{
             this.entId="";
        }
        this.init();
    },
    methods: {
      back(){
        this.$router.push({path:"/ent/entBaseList"});
      },
      init() {
        //合作银行列表
        this.$refs.entBaseComponentDisplay.init(this.entId);
        //企业人员列表
        this.$refs.entBaseGsComponentDisplay.init(this.entId);
        //其他人员列表
        this.$refs.entpersonComponentDisplay.init(this.entId);
      }
    },
    created() {}
  };
  </script>
  <style lang='scss' scoped>
  </style>